Prevents a spurious maximum recursion depth error