fix params lost bug