Capture territory. Crash fix