fix bug for repeat {2, 5}, create accept state first