fix integer validation when distributing