Fixed resource name when duplicating. Closes #23.