fixed resources issues