Fixed an error with the permission