Fix bug that can't work persistent action in other buffer
Preselect nearest error