Changed position of before_body_end