debug when heap is empty