Fixed bug for datasets other than anatomies and voxel size problem