fixed the endless status bug