Fix pheap when count > total elements