fix resources issues.