fixed mixed-up variable names

#3314 
Wow, missed that last time looking at this