Fixed page render bug