Fix inventory type bug