Fixes issues with parentheses

Fixes issues with parentheses