Maybe fix page load check