Don’t put the term back until we’ve run our check for an existent parent. Also fix stupid syntax error.