fixed bugs in header