Fixed the resume from pause