bug fixed

if merge happens, we need to scan from the start of the file.