Fix bug in creation of vehicle table