Fixed parameter passing problem from java