save resourse edit bug