bug fix in xvg and getInput