Fixed server crash with inventory