fixed grave mistake in IsUniform method