fixed save_tf