remove nils from map