The older iteration of this function keys the return dictionary on name, not id - which makes sense, since the input values are names.