fixed some XRF calibration buglets