Merge pull request #1283 from ZappoMan/keep_local_voxels

fix potential crashing bug related to incorrectly initialized memory