Fixed bug, fetching json does not work on all platforms