fixed a bug with missing client queries