Fix a bug in member profile permission managing