Fix bug in frame difference checker.