fix min heap coredump