Structure detection works for directions now, but structure position is incorrect