Fixed bugs in traffic_animation which led to errors when the number of real lanes is 2.