fixed the bugs around parenthesis

gogogogo