fix error for nerdtree