Fixed pause not working properly.