Fix refresh without connection problem