Fix java iterations argument