Fix orig_malloc but has some bugs yet