inference fixes