IE fix when using back button