Fixed a bad recursion