Fix operator precedence; add curly brackets