Fixup returns from lookupsids in the same way as lookupnames. Inspired by