Fixed missing paren
Fixed many errors