diff --git a/embed/mozilla/mozilla-embed.cpp b/embed/mozilla/mozilla-embed.cpp
index d8ffc13..a0e8be5 100644
--- a/embed/mozilla/mozilla-embed.cpp
+++ b/embed/mozilla/mozilla-embed.cpp
@@ -217,7 +217,7 @@ mozilla_embed_grab_focus (GtkWidget *widget)
 {
 	GtkWidget *child;
 
-	child = gtk_bin_get_child (GTK_BIN (widget));
+	child = gtk_bin_get_child (GTK_BIN (MOZILLA_EMBED (widget)->priv->moz_embed));
 
 	if (child && GTK_WIDGET_REALIZED (child))
 		gtk_widget_grab_focus (child);
