fix extra righthand paren bug