Fixed wrong parsing of variables in ResampleOpUI, closes #23 .