fix ES validation and ajust scan window