fixed wrong object registration