Fixed errors in Gaussian kernel