Properly fix command perm registration