provider query fixed