fix gabor kernel error