fix for deployments with REST api