fix spinner behavior