Fixed a small issue in recursion tracking for objects