Fix invalid header() use.
Removed ob_end_clean().
Calling ob_end_clean() before ob_start() throws a notice: "Failed to delete buffer. No buffer to delete."
Remove all semicolons before curly braces (replace ";}" to "}").