fix update origin issue when switching to coordinate tab