fixed the bug where a single result from the api would result in no results on the map