Fix a range-check error in release mode in UnitsAPI