Corrects the list of variables to keep to remove header variables