fix refactor spec