fix: memory overlap detection