Fix nerd in terminal mode.