Attempt to fix headers already sent