(bug-fix:minor) Error in computation of output measure to print to a file