bug fix for always trigger double click