fix error in getting work by canonical name