fixed a bug when data doesn't download from the server properly