fix reload,restart bug, add some ready.