fix set_method() for IE8