ResourcePlugin - Fix bug when deleting old resources