fix typo bug in process_fidelity