Fix getting header information