Fixed getting data from server

fixed getting data from server