- fixed bug when refreshing UI