fix bug double click on ref