#381: Fixed tabs switching