Attempt to fix pageinit not firing in some circumstances