bug fix in th2d bins