fix motion bug when words foward in end of line or end of file