Fix issue #1136 - parentheses

Applied fix suggested by @rscs which was confirmed working by two other users.