Fix to support IE 7 or later