fix fetch data from server