fix registration