Fixed page resize issues