Fix error when run on local require user permission