cursor position bug fixed 2