Rollback instance variable reference to new_resource in template creation