fix typo in capture group var assignment