Fix traversing wrong object