autocmd not working correctly