Fix annoying output loop