fix wrong object type