fix bug related to nrefactory dependencies