fix the bug of borderInterpolate

fix the bug of borderInterpolate