'Nuff said - you can see the cut-n-paste error in the code for UpdateFITS()
Duplicate of #332, which has been completed. Closing this.