Fixing a small bug in starmap

d