Fix to problem whereby selecting multiple mask files in series was borken.