Fixed the issues around IE automation.