fix: when anchor is placed at the end of file, approx_match.py will not match the anchor correctly in target file.