fix registration issue