Fixed bugs in sankey and validated request args output