Fixed a bug in the spinner widget