Fix object dumping issue