Fix conditional expression precedence issue

Fixes #250.