Fixed bugs when drawing regions.
Fixed 'sticky' line.
Fixed bugs.