fix spinner bug