bug for StatFilter merge sql