Utilities: fix NetworkOnMainThreadException