Fix bug roles_mask