Fixed inference bug.