Fixed vehicle class constructor.