Fixed a problem with recursion limits and pickle.