fixed incorrect operator priority