Fix issue switching to result tab