typo in doc
fix bug re circular data structure