fix bad param recovery