fixed a bug where it behaved unexpectedly when the mask contained numbers