Bugfix of the registration duplicate name checking