fixed: memory leaks in fine-tuning