finally fixed tf problem