Add missing right parentheses