fix list values in query