fix recompute_bcount regression