debug

fix cursor position bug