fixed bug on response headers