Fix recursive bug
Fix region bug