fix deepCompare