$ 0 0 That looks like a bug. You might change the slider range to 0 – 2 and adjust the values before reading/writing it.