Bug fix about undefined returned when parsing params.