wrong object error fix