Fixing refactoring consequences