fixed some bugs in the nearest_bees function for throwerant