fix some coordinate bug