bug fix of xzmalloc