Ming Jin: fix resource inherence issue