fix for the java config code