fixed some bugs in bpmcalib