Fix for relations that are overlapping