fixed scala creation problem