Fix some bug that returns rows when there’s no internet connection