fix some bugs about right checking and position display.