Possible getOxygenSaturationHistory bug?

I was trying to follow the documentation about getOxygenSaturationHistory, it fine when I use the simulator but deploying to actual device makes the app to crash and the stack trace is empty:

//DOCUMENTATION SAMPLE CODE
//USING THIS CODE WILL WORK ON SIMULATOR AND PHYSICAL DEVICE WITHOUT ISSUE
function getIterator() { // Check device for SensorHistory compatibility if ((Toybox has :SensorHistory) && (Toybox.SensorHistory has :getOxygenSaturationHistory)) { // Set up the method with parameters return Toybox.SensorHistory.getOxygenSaturationHistory({}); } return null; }

//MODIFIED CODE WITH DURATION AS OPTION
//USING THIS CODE WILL WORK ON SIMULATOR BUT WILL CRASH ON PHYSICAL DEVICE
function getIterator() { // Check device for SensorHistory compatibility if ((Toybox has :SensorHistory) && (Toybox.SensorHistory has :getOxygenSaturationHistory)) { // Set up the method with parameters return Toybox.SensorHistory.getOxygenSaturationHistory({:period=>new Time.Duration(3600*numHrs)}); } return null; }


Using both the source codes above for HR, Pressure, Alttitude and Temperature Sensor had no issues only with OxygenSaturation.
Did I do something wrong or is it a bug?