Fix clone method

Closes #135
Merge pull request #142 from fzaninotto/fix_proxy

Fix clone method