fixed problem with inventory