Fix a bug in waiting of hydration