fix bug with doubleclick