Fixed some missing parantheses and a typo