bug fix in tie construction