 
             meta.attr("content", value or "")
         else
-            meta = $("meta[name='#{key}']")
+            meta = $("head meta[name='#{key}']")
 
             if meta.length == 0
                 meta = $("<meta name='#{key}'/>")


            meta.text(value or "")
        else if key.indexOf("og:") == 0
            meta = $("meta[property='#{key}']")

            if meta.length == 0
                meta = $("<meta property='#{key}'/>")

        )

    removeMobileViewport: () ->
        $("head meta[name=\"viewport\"]").remove()

    setfn: (fn) ->
        @._listener() if @.listener
