getBins fixed