Fixing a problem in writing the flags of bighorns fits file: zeros were replaced with nans