Fix the wrong copying of configuration params

Comment From: tzolov

Thanks for catching and fixing this @siddharthshankarpaul !