tristring bug fix