fixing registration error