fixed bug with list deletions