Fix a bug for privilege