Fix potential source of ui thread freeze.