Fixed pause bug