fixes to document hydration (some sort of race is happening with async)