fix active tab problem.