Bugfix for calibration activity crash