fixed bug when spinner was hidden