minor fixes to Java2D backend