fix some bad parens and one misleading message