Only do join if necessary