fixed memory bug in protein_mic