Fixed major bug with deleting collections