Fix Bug #161

sir i have fixed the repeat ui state forgotten bug