Fixed page reset function