- fix issue with saving a new resource