small bugs in java m3 Core