Fixed the pause error