Fix for pausing