Fix crashes from already-registered perms