bug fixing when process era version=0

Manuel:

Please review and merge.
Thanks,
yuyi