fixed problem with defining scan regions