fix bug in drmhelper where two entries are removed