fix for visual mode sticking when using extract method