Fixed bilinear interpolation - crashed sometimes because of calling unexisting array index