Fixing page reload