Fix to params dict generation.