Bug fix for processing_era

Bug fixes for insertBlock code for migration service.