Fixed elusive 'attempt to index vehicle' error.