Fixed edit registration issue