Fixed a bug caused by group by and no named constant vlaue.