Fix operator precedence, closes #101