Fixec cursor position bug (movetofirstrow).