diff --git a/helpers/make-firefox b/helpers/make-firefox
index d0fe05367b29be7ab2f6f4a8266d7e18f6a3da53..6f034b2a944c67381b331c3cb88fa487a1b66f21 100644
--- a/helpers/make-firefox
+++ b/helpers/make-firefox
@@ -70,7 +70,7 @@ sed 's%https://www.mozilla.org/legal/privacy/%https://trisquel.info/legal%' -i .
 #sed 's%https://www.mozilla.org/firefox/central/%https://trisquel.info/browser%' -i browser/base/content/browser-appmenu.inc
 
 # Remove Google API key
-sed '/Google API/,$ d' debian/config/mozconfig.in -i
+sed '/Google API/,/google-api-keyfile/ d' debian/config/mozconfig.in -i
 
 # Org branding
 sed 's/com.ubuntu/org.trisquel/' -i debian/config/mozconfig.in