[aquamar] fix to avoid Java VM crash caused by JAMA Matrix