vmode to wmode fix