bugfix: ensure not accessing the item after it has been released