Fix for cap deployment