Fixed object instanceof for old IE browsers.