Fixed bug in reading of masks (inner my %masks clobbered outer)