refix headers already sent