error in tf