fix messed up parameters.