fix a bug with adding cars to an empty map