Connected after everything is initialized
Merge pull request #424 from lingmingyb/nullpointer

Connected after everything is initialized