Fixed the pause + restart problem