Fixed mistake causing to initialize page two times