Fixed bug in setting pfam index