Fixed crash on calibrate buttons.