Fixed a bug where info from each frame is used for comparisons, leading to mismatch.