Several fixes for 'pxa' and visual mode interaction