fix a vehicle pass bug and a flow count bug