fixed CRF inference