Fixed UI refresh issue.