Fixed CheckPermissions()