fix another stupid bug in overlap detection.