fix a bug in operator precedence
if statement