fix zero division error in tlen_binned