Fixes bug when getting new data.