fixed a bug with parsing multiple query params