Another fix for UI thread violation.