Fix deprecated variables.