Fix re-creation of resources on edit

Fixes #67