fix to deploy script