Ming Jin: fix nil usage issue of host