made cohesion_hist_size failsafe