Fixed bug when navigating word

Fixed bug in deleting line