Another bug fix for processchemistry.py