Empty pages on load fix