bug fix (wrong trilinear interpolation)