added fixHeader()