Fix scope bug for IE.