fixed adding resources