fix minheap
fix time event