fix: doesn't work when open other buffer