fix crash on spinner