Fix double click bug.