minor fix to map_on_cluster