Fixed COG bug infinite loop in Veins gen