Ensure buffer-local autocmd was executed to the correct buffer.