fix end loop