fix bug with multiple-value param when adding parameter to query