query header fix