Fixed problem to plot chars per query