fixed bug in map where invalid data was being passed