Fix double click on tab