vm: fix jumpy cursor