Fix double click-edit bug.