fix a race condition on startup (IE-specific)