Fix potential type error in tick statistic.