Refactoring bugs