fix bug active when add class