try fix scala constructors issues

try fix scala constructors issues