Fix bug of deployment script