fix no network connected bug