fixed bufnr issue