fix simple query