Fixed query dependency reference