fix another error in the chemistry context