fix resource issue