Use the right variable in the error msg.