fixed bug in bilinear interpol