Bug in large regions. Refactor