fix bug in sobel feature computation