fix some trouble in spinner