Fixed bug pause