fixed calculating min/max ranges when splitting bucket