enhance compatible with firefox.