fixed registering