`ob_end_flush()` must come last