fixed some heap status/codetrace