fix overlap calc