-VG calibration: added check for NaN values.