(DAL) Fix bug in removal of processed elements