Fix make_masks parser