fix headers leak