Replaced multiple ob_end_clean with ob_clear_open_buffers