Fix java variables