Fix gaussian kernel