fix getHeader