Fix empty loop