Fix bug with dblclick