Correct variables to join