Fixed region shifting issue.