fix zero bin size problem