fix to jvmBasic, thanks to Sam Harwell