fix actors for Java