Made clearRegion better