Fix for pause not working