Fixed autocmd to be local to the buffer.