Fix ZeroDivisionError on incorrect calibration input