Fixing segfault when downloading activities