fix loading spinner which was spinning forever

this should fix it