fix wxSpinCtrl bug