Merge pull request #1597 from silnrsi/bugfix5

Fix unmasked bug from previous typo fix