take care of the calibrate error

Signed-off-by: Haizi Zheng <haizi.zh@gmail.com>