[stats] clean up some warnings