Fixed page pausing on page visibility change