Fix improper assignment and badly closed parens