fixed wrong tab bug