Fix some voxel performance issues and crashes.