fix bug from adding RBRACE but not '}'. suppress debug output