bug fix on double click