oops, that's because I moved the clause from the new function below. Good catch, fixed.