Shouldn't hold the lock when refreshing the UI