Fix operator precedence bug