fix bug for requestFailed