Fix bug in uniform mapping when input range larger than output range.