fixes bug that was causing simulation scheduled events to be delivered out of order