fix scan region

by Ali.