Fixed the contains block when one list is linked and the other is not