Fixing networkonmainthread