Corrected header height filewrite

Derpaderp
Changes which will be overwritteef