fixed UI thread sync issue