Fix vim segv when going back.