fix for deployment_mode