fixed bug headers not being returned