Fixed spinbox bug