clean negative ids for group links and locations