Fixed bug where it would delete the item even if it was checked out by someone