fix registration check