fixed adding and saving of Rest Resources