Made locale listener work in IE.