fixed wrong query paramenter serialization. issue #2890