Fixed NPE for inventory name.