fix broken registration