returning wrong object fix