Fix for processing_era is 0

Manuel:

Please review and merge the patch.
Thanks,
Yuyi