SpinBox: bug fix