Fix adjust_heap

Signed-off-by: Thynson <lanxingcan@gmail.com>