fixed 2 gui bugs NaN and whitespace issues.