fixed inflation error

fixed old inflation error that re-occurred after refactoring.