Fixed the infinite spinner bug.