Fix a bug with fits IO

This prevents the duplication of COMMENT and HISTORY in the FileHeader.