fixed heap-init issue