Fixed coordinate bug