Fix operator precendence problem and capitalization typo