fix for when joins are empty