Fixed seed recursion bug