Fixed a bug with incorrect operator precedence