fix shell resource setting