fix params in query