Remove unnecessary paths in ListPointers