fix for issue #44 (Cursor gets lost when pressing enter in the last column)