fixed escape characters error in GoHist function