fix one bug on repeat by repeatSpec