fixed bug in operator precedence