Fixing a memory leak
Fixing script for TTMirror case