fix mask filenames