Use the correct variables

This was messed up in a merge previously.