fix "headers already sent" messages in output - Revo 2.3.1