Fixed headers not sent bug