fixed bug with container deletions