fix variable name printing bug