Fixing small mistake after refactoring