Fixed a recursion error