Fixes descendant queries to ensure that the comma is suffixed to the path, otherwise strange things could happen when there are longer ids!