fix Issue 12934 - Strange newly implemented VRP behavior on foreach