Fix for UI action in worker thread.