Fix registering