Fixed bug in the calibrations