BF: save old hdr when for transferring keys when changing the number of maps