fix for cap