fixed the repeat