Fix incorrect asserts in heap_update/heap_delete

Fix incorrect asserts in heap_update/heap_delete

Edit