fixed the annoying lag in visual mode