Fix for previous Java versions.