fix for a java ref