Fixing the capacitor in a housing