Fixed a bug where the bucket size for a categorical split was often set to 0