fix bug during module creation
The default config object was not duplicated correctly