fixed bug in dwgsim_eval.R