fixed bug which kept spinner spinning