fixed tf crash