Fix refactoring mistake