tried to fix the indefinite spinner bug