solve a small problem about double click