prevent segfaulting while downloading avatars