fixed the Infinite loop when dblckick