Add  route to setIdToElem.  Correctly fixes #646