fix bug of refactoring step - not done