[CORE] fix maskLevel is set with group id while it should be group level

See #144
Merge pull request #150 from thomasleveil/fix/group_level_in_mask_level

fix maskLevel is set with group id while it should be group level