Fixed a bug in map where it flatted results that it shouldn've.