Fixed UI thread violations errors.