fixes spinner duration bug