Fix bug causing activity feed crashes