Fix problem with visual line mode