Fixed missing dependency and deep equality check