set fetchingInvites to false on error