Fixed crash bug when taking out items from the bonfire