fixed UI thread issue