protect ColorAtColor from floating point weirdness