Fix ie7 stackoverflow bug.