Fix race condition (IE9 build 211)