Fix check recursion

Made a typo when I fixed pep8 and went to use the base _check_recursion.