fixing the spinner