Fixed a crash caused by updating the UI from secondary thread