fix bug when generating params