Fixed page reload problem