fixed the bug that sets the wrong parameter by mistake.