Fixedthe cause of a recursion depth error