Fix bug with item locking