Fixed problem with null visited page