Fixed missing parentheses and typos