fixed tab completion for history type