fix registration model