Fixed a bug with car_position function