bug fix: error in condition for self.substances
bug fix: error in conversion to float in module numsort