Fix inventory function