fix registration controller