Refactoring errors