fix double-clicking