fix capture of STATEMENT_GROUP value