(bluefox) fix error if no history for datapoint found