Fix bug for still showing the refreshing when there's no network