fix no repeat function not work problem