fix resource issue.