Fixed "headers already sent..." if output buffering is off.