fixed resume glitch