The problem is in the header code somewhere as it is OK after completely removing the header stuff, therefore, I will place it back there again and go from there one step at a time.