Fixed a bug for the case where both metadata upate and sender deployment are unsuccessful