Welcome to the wonderful world of FITS interoperability issues.
"Luminance" and "Lum" are different filter names. Do you really think it's a good idea to modify the script to assume that both are equivalent? I am not so sure. Anyway, I don't see any bug here, but just an interoperability problem between applications, caused by an obsolete file format that is unable to standardize even basic image properties. We have started the XISF project precisely to solve these problems, among many others.
You don't need to modify FITS headers. You can instead add the required frames manually by clicking the Add Custom button.