Fixes the response of generate password.