Fix bug with autocmd