Fix cursor cloning issue with deepcopy and regex #179
Merge branch 'pull-179'