Fixing nasty bug when fetching data from the network.