Inspecting locals fixed
Removed error
Fixed region extracting