Fix broken operator precedence logic.