Remove UI changes from background thread that make application crash [skip ci]