Fix bug when fetching data in Chrome