Bug fix : solve problem that main activity cause err when network is
n/a.