bug fix if target file smaller than signature index