fixed repeated recognition issue