fix firebug bug