Fixed bug #161

sir,
i have fixed the repeat ui state forgotten bug
Revert "Fixed bug #161"

This reverts commit a549286eb1ba9f527083948ed8137a80e04389a4.