Fixed a loop in the deployment script