Hi map per, 
Thank you for reviewing my changeset and flagging out the issue. Currently we don't use this tool to restore history, but as per your suggestion and deep dive I have made the necessary changes. Always happy to learn from the community.Thanks once again,looking forward to learn more from you.
Regards,
nagalvad