bug createHeader