Fixed page transition bug