fix randomly failing analytics feature