Fix error in chemistry context