Fix clone config object

My pull request (#19), I had to clone config object. Sorry...
This pull request is fixed this.