Fixed an inifite floodloop