fix bug of region