fixes refactoring bug with the tutorial