Fixed arithmetic exception

When clicking ok on a preference where the value was
not changed, possibleVal remained at 0, so the
preference was set to zero. Now possibleVal is
initialized to currentVal, fixing the issue