fixes PERMISSION_PREFIX bug