fix introduced bug to refactor