Fix time synchronization in replay of internal_mod.
Fix call of protected method flush_orders.