Removing error log and renaming resource