Fix #1605: shared nodes between areas causing hang.