bugfix when map returns nothing