Fix java based rendering