fix scala style errors.