fix segfault #19 in copy/modify
another attempt to fix issue #19
final fix for issue #19
Merge pull request #21 from 28msec/CopyModifySegfault

fix segfault #19 in copy/modify