fix inference regressions