fix deletes which aren't carried out

strings have to be tested for equality using equal rather than eq. and
consequently membership with member instead of memq.