fixed read for header