fixed the bug on parameters.