Fixed pause bugs