Fixed pause script.