I would make deepcopies of projs, ch_names and epochs.info['bads'] to avoid issues.