fixed segfault in insertNewVehicle(..)