Fix potential race condition on home page.