Redeploy script fixed