Fix scala RPAREN problem