Minor fix with inventory, fix the problem when the game finish