Fixing autoinventory classes