Modified writing plate header to FITS file, fixed bug with value 0