Correct a bug related to the permission