qmd: bug fix, for incorrectly specified variable