fixed coordinate bug