fix registration problem