Bug fix in handling pmid registration