fix for error when creating a new vehicle record