fixed tie bug