Fix bug in registration edit