gw_summary: mode-related bug fixes