Fix the repeat loop bug on admin page