Fix flash motion in visual mode