fixing registration