looped bugfix