First series of bug fixes for chem inventory