fix the bug of borderInterpolate

@ artwl
http://www.cnblogs.com/justany/archive/2012/12/27/2835152.html#2601904