Had to change ordering of calling of Fancyheader to place it after geometry instructions.