bug fix to RunSTac.