fix js error on gridview