inventory and import bug fixes