Fix deletion regression due to strings instead of atoms