Parentheses bug resolved

Parentheses bug resolved
Bug verified by test case