fix trailing $ in ids