error in heap_addref corrected