modify a bug that heap is overloped.