fix reset password functionnality after config change