Writer: fix to area detection heuristic issue #526