fix registration callback