Fix wrong heap size while adding new heap