Fix for multi-stage deployments.