fixes spinner bug