Fix support for legacy IE