Fix adding multiple joins.

When more joins are added, they must be added completely.