fix insert_event when first event was inserted