Before modifying first frame searchHIW