Remove useless infinite loop