region bug fixed.