spinner crash fix